package com.wangnan.service;

import com.api2.User;
import com.api2.UserApi2;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "user-provider",fallback = UserProviderBack.class)
public  interface UserConsumerService extends UserApi2 {
    @GetMapping("/isAlive")
    String isAlive();

    @GetMapping("/getById")
    User getById(Integer id);
}
